<extend name="Public/base" />

<block name="body">
    <!-- 标题栏 -->
    <div class="main-title">
        <h2>pk列表</h2>
    </div>
    <div class="cf">


        <!-- 高级搜索 -->
        <div class="search-form fr cf">

            <div class="sleft">

                <!--<a class="sch-btn" href="javascript:;" id="search" url="{:U('business_search')}"><i class="btn-search"></i></a>-->
            </div>

        </div>
    </div>
    <!-- 数据列表 -->
    <div class="data-table table-striped">
        <table class="">
            <thead>
            <tr>
                <th class="row-selected row-selected"><input class="check-all" type="checkbox"/></th>
                <th class="">ID</th>
                <th class="">pk主播</th>
                <th class="">pk票数</th>
                <th class="">被pk主播</th>
                <th class="">被pk票数</th>
                <th class="">pk状态</th>
                <th class="">pk时间</th>
            </tr>
            </thead>
            <tbody>
            <notempty name="list">
                <volist name="list" id="vo">
                    <tr>
                        <td><input class="ids" type="checkbox" name="id[]" value="{$vo.id}" /></td>
                        <td>{$vo.id} </td>
                        <td>{$vo.uid|getusername}</td>
                        <td>{$vo.pknum} </td>
                        <td>{$vo.buid|getusername}</td>
                        <td>{$vo.bpknum} </td>
                        <td><if condition="$vo.status eq 1">pk进行中<else/>pk已结束</if> </td>
                        <td>{$vo.create_time|date="Y-m-d H:i:s",###}</td>
                    </tr>
                </volist>
                <else/>
                <td colspan="9" class="text-center"> aOh! 暂时还没有内容! </td>
            </notempty>
            </tbody>
        </table>
    </div>
    <div class="page">
        {$_page}
    </div>
</block>

<block name="script">
    <script src="__STATIC__/thinkbox/jquery.thinkbox.js"></script>
    <script type="text/javascript">
        //回车搜索
        $(".search-input").keyup(function(e){
            if(e.keyCode === 13){
                $("#search").click();
                return false;
            }
        });

        //导航高亮
        highlight_subnav("{:U('Manage/pk')}");
    </script>
</block>
